<html>

<head>

    <title>存量房买卖合同网签信息查询</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta name="format-detection" content="telephone=no">
    <meta content="telephone=no" name="format-detection">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <script type="text/javascript">
        function retBack() {
            window.history.back(-1);
        }
    </script>
</head>

<body style="">
    <style>
        html{height:100%;width:100%}body{overflow:hidden;margin:0;font:12px/1.5 Lucida Grande,Lucida Sans Unicode,Helvetica Neue,Hiragino Sans GB,Microsoft Yahei,sans-serif;color:#4b4b4b;height:100%;background-color:#fbfcf8;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none}input{font-family:'\5b8b\4f53'}input:focus,button:focus{outline:0;-moz-outline:0}input:-webkit-autofill,textarea:-webkit-autofill,select:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px white inset;-webkit-text-fill-color:#757575}input:disabled{background-color:#fff}button{background-color:#427fed;width:100%;border-radius:2px;height:40px;font-size:16px;color:#fff;border:0;cursor:pointer}button[disabled]{border:1px solid #bdbdbd;background-color:#eeecec;color:#9f9f9f;text-shadow:0 1px 0 #fff;cursor:default}button.active{background-image:url(/Content/images/Login/loading.gif);background-repeat:no-repeat;background-position:center 10px;z-index:10}.lr-layout-block{position:relative;width:1024px;margin:auto;top:50%}.lr-layout-block.top{margin-top:-308px;height:56px}.lr-layout-block.middle{position:relative;width:100%}.lr-layout-block.bottom{width:1024px;margin:auto;text-align:right;margin-top:20px;color:#828282}.lr-layout-side{position:absolute;top:0;width:50%;height:524px;z-index:0}.lr-layout-side img{width:100%;height:100%}.lr-layout-side.left{left:0}.lr-layout-side.right{right:0}.lr-layout-side.center{position:relative;margin:auto;width:1024px;background:url(/Content/images/Login/bg_02.jpg);z-index:1}.lr-login-form{position:absolute;right:57px;top:80px;height:300px;width:306px;background:#fff;padding:70px 20px 0 20px;box-shadow:5px 10px 20px 2px rgba(0,0,0,.27)}.lr-input-item{width:100%;height:38px;margin-bottom:20px;border:1px solid #bdbdbd;position:relative}.lr-input-item.focus{border:1px solid #bbb}.lr-input-item>label{position:absolute;top:0;left:0;z-index:1;width:38px;height:100%;border-right:1px solid #bdbdbd;background:url(/Content/images/Login/pwd-icons-new.png) no-repeat}.lr-input-item>.name-label{background-position:0 0}.lr-input-item.focus>.name-label{background-position:0 -48px;border-color:#bbb}.lr-input-item>.pwd-label{background-position:-48px 0}.lr-input-item.focus>.pwd-label{background-position:-48px -48px;border-color:#bbb}.lr-input-item>.code-label{background-position:0 -96px}.lr-input-item.focus>.code-label{background-position:-48px -96px;border-color:#bbb}.lr-input-item>input{height:20px;line-height:20px;border:0;padding:9px 0 9px 50px;width:256px;font-size:16px}.lr-verifycode-item{position:relative;height:36px;width:100%;margin-bottom:13px}.lr-verifycode-item>input{position:absolute;left:0;width:180px;line-height:18px;height:18px;overflow:hidden;font-family:'\5b8b\4f53';border:1px solid #bdbdbd;font-size:14px;padding:7px 5px;vertical-align:middle;margin-right:10px}.lr-verifycode-item>div{position:absolute;right:0;width:99px;height:33px}.lr-verifycode-item>div>img{width:100%;height:100%;cursor:pointer}.lr-login-links{height:20px;line-height:20px;margin:10px 0 auto 0}.lr-login-links a{float:right;color:#000;text-decoration:none;outline:0;-moz-outline:0}.lr-login-links a:hover{color:#427fed}.lr-version{position:absolute;bottom:15px;width:306px;text-align:center}.lr-tips{position:absolute;top:20px;text-indent:3px;height:30px;line-height:33px;width:276px;color:#a94442;background-color:#f2dede;border:1px solid #ebccd1;border-radius:2px;display:none;padding-left:30px}.lr-tips b{position:absolute;top:50%;left:10px;display:block;margin-top:-8px;width:16px;height:16px;overflow:hidden;background:url(/Content/images/Login/pwd-icons-new.png) -104px -49px no-repeat}
    </style>

    <link rel="stylesheet" href="http://2wm.office365.xin/base/bootstrap.min.css">
    <div style="height: 40px; background-color: #15adbd">&nbsp;&nbsp;
        <div style="float:left;width:100px;line-height:40px;color:white;" onclick="retBack()"> &lt;&lt; 返回</div>
    </div>
    <div style="margin:0 auto;width:96%;font-size:18px;line-height:50px;">
        <div style="clear:both;">
            <div style="float: left; width: 90px;">房屋坐落：</div>
            <div style="float: left;" id="POSITION">文化名邸6幢</div>
        </div>
        <div style="clear:both;">
            <div style="float: left; width: 90px;">合同编号：</div>
            <div style="float: left; " id="CONTRACTENO">2227827292928</div>
        </div>
        <div style="clear:both;">
            <div style="float: left; width: 90px;">出卖人：</div>
            <div style="float: left; " id="SELLERNAME">宗汉</div>
        </div>
        <div style="clear:both;">
            <div style="float: left; width: 90px;">买受人：</div>
            <div style="float: left; " id="PURCHASNAME">凶此单</div>
        </div>
        <div style="clear:both;">
            <div style="float: left; width: 90px;">房屋总价：</div>
            <div style="float: left;" id="HOUSEPRICE">728988 元（不含税）</div>
        </div>
    </div>
    <script src="http://2wm.office365.xin/base/jquery.min.js"></script>
    <script>
        function request(d) { for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) { var b = c[a].split("="); if (b[0] == d) if ("undefined" == unescape(b[1])) break; else return unescape(b[1]) } return "" };
    </script>
    <script>
        document.write('<script type="text/javascript" src="search.min.js?v='+new Date().getTime()+'"><\/script>');
    </script>

    <script>
        /*!
         * 版 本 Learun-ADMS V7.0.0 力软敏捷开发框架(http://www.learun.cn)
         * Copyright (c) 2013-2018 江苏冲浪软件科技有限公司
         * 创建人：力软-前端开发组
         * 日 期：2017.03.08
         * 描 述：登录页面前端脚本
         */
        (function ($) {
            "use strict";
          
           
            var lrPage = {
                init: function () {
                    if (window.location.href != top.window.location.href) {
                        top.window.location.href = window.location.href;
                    }
                    var isIE = !!window.ActiveXObject;
                    var isIE6 = isIE && !window.XMLHttpRequest;
                    if (isIE6) {
                        window.location.href = $.rootUrl + "/Error/ErrorBrowser";
                    }          
                    lrPage.bind();
                },
                bind: function () {
                   
        
                    var HTH = request('HTH');
                   
                    var CARDNO = request('CARDNO');
                    
                     
                    //if (checkIdCard(CARDNO)) {
        
                    if (CARDNO.length < 10) {
                        alert("请输入完整证件号码！");
                        return;
                    }
        			if (res) {          
        				$('#POSITION').html(res.position);//房屋坐落
        				//$('#HOUSEOWNERCODE').html(res.data.HOUSEOWNERCODE);//权证编号
        				$('#CONTRACTENO').html(res.contractno);//合同编号
        				$('#SELLERNAME').html(res.csr);//出卖人
        				$('#PURCHASNAME').html(res.msr);//买受人
        				//$('#TRANSACTIONMODENAME').html(res.data.TRANSACTIONMODENAME);//交易方式
        				$('#HOUSEPRICE').html(res.price + " 元（不含税）");//房屋总价款(元)
        			  
        				//$('#RECORDSTATUSNAME').html(res.data.RECORDSTATUSNAME);//是否备案
        			}else {
        				console.log(res);
        				alert("未查询到相关信息");
        				window.history.back(-1);
        			}
                    //}
        
                     
                },
              
            };
            $(function () {
                lrPage.init();
            });
        
        
            // 身份证校验，实名制验证，规则091223b
            var checkAge = true;
            function checkIdCard(personid) {
                if (personid.length == 15 || personid.length == 18) {
                    // 检查是否含有特殊字符
                    if (personid.length == 15) {
                        for (i = 0; i < personid.length; i++) {
                            if (isNaN(parseInt(personid.charAt(i), 10))) {
                                alert('身份证号码中含有非法字符1');
                                // 身份证号码中含有非法字符
                                return false;
                            }
                        }
                    } else {
                        for (i = 0; i < personid.length - 1; i++) {
                            if (isNaN(parseInt(personid.charAt(i), 10))) {
                                alert('身份证号码中含有非法字符2');
                                // 身份证号码中含有非法字符
                                return false;
                            }
                        }
                        var lastIDNum = personid.charAt(17);
                        if (isNaN(parseInt(lastIDNum, 10))
                        && lastIDNum.toLowerCase() != 'x') {
                            alert('身份证号码中含有非法字符3');
                            // 身份证号码中含有非法字符
                            return false;
                        }
                    }
        
        
                    // 地区
                    var area1 = personid.substr(0, 2);
                    var area2 = personid.substr(2, 2);
                    var area3 = personid.substr(4, 2);
                    if (area1 != "11" && area1 != "12" && area1 != "13" && area1 != "14"
                    && area1 != "15" && area1 != "21" && area1 != "22"
                    && area1 != "23" && area1 != "31" && area1 != "32"
                    && area1 != "33" && area1 != "34" && area1 != "35"
                    && area1 != "36" && area1 != "37" && area1 != "41"
                    && area1 != "42" && area1 != "43" && area1 != "44"
                    && area1 != "45" && area1 != "46" && area1 != "50"
                    && area1 != "51" && area1 != "52" && area1 != "53"
                    && area1 != "54" && area1 != "61" && area1 != "62"
                    && area1 != "63" && area1 != "64" && area1 != "65"
                    && area1 != "71" && area1 != "81" && area1 != "82"
                    && area1 != "91") {
                        // 身份证号码中地区编码不正确
                        alert('身份证号码中地区编码不正确');
                        return false;
                    }
        
        
                    /*
                     * 修正091223b if(area2=="00"){ idcshow.style.display="";
                     * dividc.innerHTML="<font color=red>身份证号码中地区编码不正确！</font>";
                     * div_idcard.className = "ico_false"; MsgShow.style.display="";
                     * MsgShow.innerHTML="<font color=black>身份证输入错误</font>";
                     * PersonMark.value="0"; return false; } if(area3=="00"){
                     * idcshow.style.display=""; dividc.innerHTML="<font
                     * color=red>身份证号码中地区编码不正确！</font>"; div_idcard.className =
                     * "ico_false"; MsgShow.style.display=""; MsgShow.innerHTML="<font
                     * color=black>身份证输入错误</font>"; PersonMark.value="0"; return false; }
                     */
        
        
                    // 年月日
                    var yyyy = "";
                    var mm = "";
                    var dd = "";
                    var yy1 = "";
                    if (personid.length == 15) {
                        yy1 = "19";
                        yyyy = yy1 + personid.substr(6, 2);
                        mm = personid.substr(8, 2);
                        dd = personid.substr(10, 2);
                    } else if (personid.length == 18) {
                        yy1 = personid.substr(6, 2);
                        yyyy = personid.substr(6, 4);
                        mm = personid.substr(10, 2);
                        dd = personid.substr(12, 2);
                    }
                    var flag = true;
                    if (yy1 != "18" && yy1 != "19" && yy1 != "20") {
                        flag = false;
                    } else {
                        if (parseInt(mm, 10) < 1 || parseInt(mm, 10) > 12) {
                            flag = false;
                        } else {
                            if (parseInt(dd, 10) < 1 || parseInt(dd, 10) > 31) {
                                flag = false;
                            }
                        }
                    }
                    if (!flag) {
                        alert('身份证号码出生日期错误');
                        // 身份证号码出生日期错误
                        return false;
                    }
        
        
                    // 年，不能小于1900
                    if (Number(yyyy) < 1900) {
                        alert('年小于1900');
                        return false;
                    }
        
        
                    // var d=new
                    // Date(yyyy,mm,dd),year=d.getFullYear(),mon=d.getMonth(),day=d.getDate(),now=new
                    // Date();
                    var year = parseInt(yyyy, 10), mon = parseInt(mm, 10), day = parseInt(
                    dd, 10), now = new Date();
        
        
                    // 校验位
                    if (personid.length == 18) {
                        var vcode = personid.substr(17, 1);
                        if (vcode == "X") {
                            vcode = "x";
                        }
                        var arrVerifyCode = new Array("1", "0", "x", "9", "8", "7", "6",
                        "5", "4", "3", "2");
                        var wi = new Array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8,
                        4, 2);
                        var totalmulAiWi = 0;
                        for (var i = 0; i < 17; i++) {
                            var num = parseInt(personid.substr(i, 1), 10);
                            totalmulAiWi = totalmulAiWi + num * wi[i];
                        }
                        var modValue = totalmulAiWi % 11;
                        if (vcode != arrVerifyCode[modValue]) {
                            alert('身份证号码校验错误');
                            // 身份证号码校验错误
                            return false;
                        }
                    }
        
        
                    // 年龄
                    if (year > now.getFullYear()) {
                        alert('身份证出生日期超出范围');
                        // 身份证出生日期超出范围
                        return false;
                    } else if (year == now.getFullYear()) {
                        if (mon > (now.getMonth() + 1)) {
                            alert('身份证出生日期超出范围');
                            // 身份证出生日期超出范围
                            return false;
                        } else if (mon == (now.getMonth() + 1)) {
                            if (day >= now.getDate()) {
                                alert('身份证出生日期超出范围');
                                // 身份证出生日期超出范围
                                return false;
                            }
                        }
                    }
                    //var diffYear = now.getFullYear() - year;
                    //var diffMonth = now.getMonth() + 1 - mon;
                    //var diffDay = now.getDate() - day;
                    //if (diffYear < 18 || diffYear === 18
                    //&& (diffMonth < 0 || diffMonth === 0 && diffDay < 0)) {
                    //    alert('存在未满18岁买受人的合同数据，请至前台办理！');
                    //    checkAge = false;
                    //    return false;
                    //}
        
                    return true;
        
        
                } else {
                    alert('身份证号码位数不对，请输入15位或18位的身份证号码');
                    // 身份证号码位数不对，请输入15位或18位的身份证号码
                    return false;
                }
            }
        
        
        })(window.jQuery)
        
        
    </script>



</body>

</html>